ARect

Rectangular window area.

This is the NDK equivalent of the android.graphics.Rect class in Java. It is used with {@link ANativeActivityCallbacks::onContentRectChanged} event callback and the ANativeWindow_lock() function.

In a valid ARect, left <= right and top <= bottom. ARect with left=0, top=10, right=1, bottom=11 contains only one pixel at x=0, y=10.

Members

Aliases

value_type
alias value_type = int32_t
Undocumented in source.

Variables

bottom
int32_t bottom;

Maximum Y coordinate of the rectangle.

left
int32_t left;

Minimum X coordinate of the rectangle.

right
int32_t right;

Maximum X coordinate of the rectangle.

top
int32_t top;

Minimum Y coordinate of the rectangle.

Meta